<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>六西格玛知识管理</title>
<link href="<?php echo $this->baseUrl ?>/public/style/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseUrl ?>/public/style/form-check.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseUrl ?>/public/style/daterangepicker.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseUrl ?>/public/style/jquery-ui.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseUrl ?>/public/style/thickbox.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/jquery.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/daterangepicker.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/jquery-ui.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/thickbox-compressed.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/jQuery.FormValidator.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/fckeditor/fckeditor.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/jQuery.FormValidator.js"></script>
</head>

<body>
<div class="mod-popSelect" style="width:350px; margin:auto;">
	<div class="select-top">
    <form action="" name="search">
    	<input type="text" class="input-text" name="search_name" value="<?php echo !empty($_GET['search_name'])?$_GET['search_name']:''; ?>" />
        <input type="submit" class="select-btn" value="搜 索" />
    </form> 
    </div>
    <script>
	$(document).ready(function(){
		$("label").click(function(){
			var company_name = $(this).text();
			var company_id = $(this).next().text();
			$("label:even").parent("li").attr("class", "");
			$("label:odd").parent("li").attr("class", "gray");
			$(this).parent("li").attr("class", "select");
			window.top.document.getElementById('company_name_hover').value = company_name;
			window.top.document.getElementById('company_id_hover').value = company_id;
		});
		$("#TB_closeWindowButton").click(function(){
			var topObj = window.top.document.getElementById('TB_overlay');
			var titleObj = window.top.document.getElementById('TB_title');
			window.top.document.getElementById('TB_window').style.display='none';
			topObj.style.opacity = 0;
			topObj.parentNode.removeChild(topObj);
			titleObj.parentNode.removeChild(titleObj);
		});
		
	});
	
	</script>
    <div class="select-list">
    	<ul>
        	<?php foreach ($this->companys as $key => $val): ?>
        	<li <?php if ($key%2 == 1): ?>class="gray"<?php endif; ?>><label for="checkbox1"><?php echo $val['name']; ?></label><span style="display:none"><?php echo $val['company_id']; ?></span></li>
            <?php endforeach; ?>
        </ul>
    </div>
    <div class="select-submit"><input type="button" class="select-btn" value="确认选择" id="TB_closeWindowButton" /></div>
</div>





</body>
</html>
